import { fetch, fetchget } from './config'

export default {
  // 用户登录
  login(params) {
    return fetchget('/net/transportAdmin/adminLogin', params)
  },
  // 派车单列表
  transportList (params) {
    return fetch('/net/transportSendNo/backList', params)
  },
  // 寄件城市
  getTransportCity(params) {
    return fetchget('/net/transportAdmin/getTransportCity', params)
  },
  // 收件城市
  getDeliveryCity(params) {
    return fetchget('/net/transportAdmin/getDeliveryCity', params)
  },
  // 订单列表
  ordersList(params) {
    return fetch('/net/transportOrder/backList', params)
  },
  // 获取角色tree
  getRoleMenu(params) {
    return fetchget('/custom/customRole/listMenu', params)
  }
}
